package com.foreveross.mofang.datapersistence.infra.exception;

/**
 * 数据操作数据异常
 * 
 * @author fb
 */
public class HbaseOperationException extends RuntimeException {

	/**
	 * 
	 */
	private static final long serialVersionUID = -2068653526285306824L;

	private Object data;


	@SuppressWarnings("unchecked")
	public <T> T getData() {
		return (T) data;
	}

	public HbaseOperationException() {

	}

	public HbaseOperationException(String message) {
		super(message);
	}

	public HbaseOperationException(String message, Throwable cause) {
		super(message, cause);
	}

	public HbaseOperationException(Object data) {
		this.data = data;
	}

	public HbaseOperationException(Object data, Throwable cause) {
		super(cause);
		this.data = data;
	}
	
	public HbaseOperationException(String message,Object data) {
		super(message);
		this.data = data;
	}

}